package com.dou.you.che.service.impl.sys;

import com.dou.you.che.core.entity.sys.SysScheduleJobLog;
import com.dou.you.che.core.mapper.sys.SysScheduleJobLogDao;
import com.dou.you.che.service.sys.SysScheduleJobLogServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 定时任务执行日志
 * @Author 黄国刚【1058118328@qq.com】
 */
@Service(value = "sysScheduleJobLogService")
@Transactional(readOnly = true)
public class SysScheduleJobLogService implements SysScheduleJobLogServiceI {

    @Autowired
    private SysScheduleJobLogDao scheduleJobLogDao;

    @Override
    public SysScheduleJobLog queryObject(Long jobId) {
        return scheduleJobLogDao.queryObject(jobId);
    }

    @Override
    public List<SysScheduleJobLog> queryList(Map<String, Object> map) {
        return scheduleJobLogDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return scheduleJobLogDao.queryTotal(map);
    }

    @Transactional(readOnly = false)
    @Override
    public void save(SysScheduleJobLog log) {
        scheduleJobLogDao.save(log);
    }
}
